<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>商品详情</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
    <meta name="format-detection" content="telephone=no, email=no" />
    <link href="css/base.css" type="text/css" rel="stylesheet">
    <link href="css/common.css" type="text/css" rel="stylesheet">
    <script src="js/jquery.js"></script>
    <script src="js/swiper.js"></script>
    <script src="js/common.js"></script>
    <script>
        $(function () {
            getScriptData("product/detail?callback=showGoodsInfo&id="+getLocationKey("id",1));
        });
        function showGoodsInfo(data){
			if(scriptFlag){
				data = data.data;
				loadingEnd();
			}
            $(".goods-name p").html(data.name);
            $(".goods-name h3").html("¥"+data.newPrice.toFixed(2)+"<span>¥"+data.price.toFixed(2)+"</span>");
            $(".title").after(data.intro);
            var pics = imgObj.goodsInfo.split(",");
            var picStr = "";
            $.each(pics,function(index,obj){
                picStr += '<li class="swiper-slide">';
                picStr += '<img src="'+obj+'" />';
                picStr += '</li>';
            });
            $(".swiper-wrapper").html(picStr);
            showSlide();
        }
    </script>
</head>
<body>
    <div class="goods-pics">
        <div class="goods-pics-content swiper-container">
            <ul class="swiper-wrapper">
            </ul>
        </div>
        <div class="goods-slider"></div>
    </div>
    <div class="goods-name">
        <p></p>
        <h3></h3>
    </div>
    <div class="title">商品信息</div>
</body>
</html>